package com.drod.numberpatternunlock;

import android.content.Context;
import android.content.Intent;
import android.content.BroadcastReceiver;

public class ServiceOnStartup extends BroadcastReceiver{
	
	public void onReceive(Context context, Intent intent){
		if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
            Intent serviceIntent = new Intent(context, MainActivity.class);
            context.startService(serviceIntent);
            System.out.println("BOOTED UP");
        }
	}

}
